package com.yuyunbo.es.restclient;

import com.yuyunbo.es.restclient.query.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;
import java.util.Map;

/**
 * @Author: yuyunbo-1154363414@qq.com
 * @Date: 2019/1/25 14:21
 * @Description:
 */
@Setter
@Getter
@ToString
public class EsModel<T> {
    private int page;
    private int pageSize;
    private EsMatchQuery esMatchQuery;
    private EsShouldListQuery esShouldListQuery;
    private EsTermsQuery esTermsQuery;
    private String warehouseCode;
    private String esIndex;
    private String esType;
    private boolean isMonthIndex;
    private T data;
    private String docId;
    private List<T> listData;
    private List<Map<String, EsSort>> sort;
    private List<EsRangeQuery> rangList;
    private Boolean isUpdate;


}
